package PTA;

public class t3 {
    public static void main(String[] args) {
        int sum = 0;
        int k = 1;
        for (int i = 13; i <= 1003; i+=10) {
            sum += i * k;
            k *= -1;
        }
        System.out.println(sum);
    }
}
